%fid = fopen('.\\output\\AllLostPacketsTimeMat.dat', 'r');

for i = 21:22
    filename = sprintf('.\\output\\AllLostPacketsTimeMat%d.dat', i);
    fdata = load(filename);
    fdata = fdata(fdata(:, 2) == 196, :);
    ids = fdata(:, 1);
    types = fdata(:, 2);
    seqs = fdata(:, 3);
    times = fdata(:, 4);

    figure;
    plot(times, ids, 'r.');
     xlim([0 88473600]);
     set(gca, 'xtick', 0:88473600/24:88473600, 'xticklabel', 0:23);
    saveas(gcf, sprintf('%d.eps', i));
end
%[fdata, count] = fscanf(fid, '%d\t%d\t%d\t%d');

%fclose(fid);